﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WestWorldRemake.Messaging;

namespace WestWorldRemake.States
{
    

    public abstract class State<T> where T : BaseGameEntity
    {
        private static readonly bool Testing = true;

        public abstract void Enter(T character);
        public abstract void Execute(T character);
        public abstract void Exit(T character);

        public abstract Iffy OnMessage(T character, Telegram t);

        protected abstract class Utilities
        {
            public static void WriteText(T entity, string text)
            {
                if (Testing)
                {
                    Console.ForegroundColor = entity.Color;
                    Console.WriteLine(entity.name + ": " + text);
                }
            }
        }
    }
}
